package com.fqgj.xjd.user.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserKycAadhaarInfoDao;
import com.fqgj.xjd.user.entity.UserKycAadhaarInfoEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
 * User: Karl
 * Date: 2020-04-03
 * Time: 17:38:08.116
 */

@Repository
public class UserKycAadhaarInfoDaoImpl extends AbstractBaseMapper<UserKycAadhaarInfoEntity> implements UserKycAadhaarInfoDao {

    @Override
    public UserKycAadhaarInfoEntity selectByKycId(long kycId) {
        Map<String, Object> map = new HashMap<>();
        map.put("kycId", kycId);
        return getSqlSession().selectOne(getStatement("selectByKycId"), map);
    }
}